<script>
	import useCommonStore from '@/stores/common/common.js';

	export default {
		onLaunch() {
			const commonStore = useCommonStore();
			const systemInfo = uni.getSystemInfoSync();
			const capsule = uni.getMenuButtonBoundingClientRect();
			commonStore.systemInfo.screenHeight = systemInfo.screenHeight;
			commonStore.systemInfo.capsuleHeight = capsule.height;
			commonStore.systemInfo.capsuleMidHeight = capsule.top - systemInfo.statusBarHeight;
			commonStore.systemInfo.statusBarHeight = systemInfo.statusBarHeight;
			commonStore.systemInfo.navBarHeight = (capsule.top - systemInfo.statusBarHeight) * 2 + capsule.height;
		}
	};
</script>

<style lang="scss">
	/*每个页面公共css */
	@import '@/uni_modules/uni-scss/index.scss';
	@import '@/static/css/common.scss';

	/* 隐藏所有页面的 navigationBar */
	.uni-app--showtopwindow uni-page-head {
		display: none;
	}

	::-webkit-scrollbar {
		display: none !important;
	}
</style>
